<%--
  Created by IntelliJ IDEA.
  User: 16061
  Date: 2025/3/19
  Time: 下午2:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--前提一:method="post"--%>
<%--前提二:enctype="multipart/form-data"--%>
    <form action="/upload" method="post"
      enctype="multipart/form-data">
    <p>文件:<input type="file" name="file"></p>
    <p><input type="submit" value="上传"></p>
</form>

<a href="/download?filename=${filename}">下载</a>
</body>
</html>
